package cn.itsource.org.mapper;

import cn.itsource.basic.util.PageList;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
    //添加
    void add(Department department);
    //修改
    void update(Department department);
    //删除
    void delete(Long id);
    //查询一个
    Department fendById(Long id);
    //查询所有
    List<Department> findAll();
    //分页查询部门数据
    List<Department> queryByPage(DepartmentQuery departmentQuery);
    //根据分页查询总条数
    Integer queryByCount(DepartmentQuery departmentQuery);





}
